//
//  BaseTableViewCell.m
//  TraderMobileKYi
//
//  Created by shijiezhao on 14/6/17.
//  Copyright © 2017年 com.yeezsoft.init. All rights reserved.
//

#import "EBMBaseTableViewCell.h"

@implementation EBMBaseTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    //  创建控件    修改点击时背景颜色
    [self createViewInSelectColor];
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self)
    {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        //  创建控件    修改点击时背景颜色
        [self createViewInSelectColor];
        
    }
    return self;
}

//  创建控件    修改点击时背景颜色
- (void)createViewInSelectColor
{
    UIView *selectView = [[UIView alloc] initWithFrame:self.frame];
    selectView.backgroundColor = RGBCOLOR16_f7f7f7;
    self.selectedBackgroundView = selectView;
}

@end
